package us.gaaoc.framework.dao;

import org.hibernate.Query;

import us.gaaoc.framework.model.FilingAudit;

 
public class FilingAuditDAOHibernate  extends GenericHibernateDAO<FilingAudit, String, FilingAuditDAO>
implements  FilingAuditDAO{

	protected FilingAuditDAOHibernate() {}
	public FilingAudit findByCaseRecordUuid(String crUuid) {
		Query q = this.getSession().createQuery("from FilingAudit fa where (fa.caseRecord.uuid = ? and fa.signFlag = ?)");
		q.setString(0, crUuid);
		q.setBoolean(1, true);
        return (FilingAudit)q.uniqueResult();
	}
}